/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.dto.audit;


import com.ceair.flight.refund.dto.external.ReqBaseDto;
import com.ceair.flight.refund.location.dt.enums.ApplyReason;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 *
 * @author youguilin
 */
public class BaseAuditReq extends ReqBaseDto {

    private static final long serialVersionUID = 3479078600182044723L;

    /**
     * 申请单id
     */
    @Min(value = 100000, message = "Invalid refund apply id")
    private long applyId;

    /**
     * 审核人姓名
     */
    @NotNull(message = "Auditer name must not empty")
    private String auditName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 退票原因
     */
    private ApplyReason reason;

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
        super.setSessionUserName(auditName);
    }

    public long getApplyId() {
        return applyId;
    }

    public void setApplyId(long applyId) {
        this.applyId = applyId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取退票原因
     *
     * @return
     */
    public ApplyReason getReason() {
        return reason;
    }

    /**
     * 设置退票原因
     *
     * @param reason
     */
    public void setReason(ApplyReason reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "BaseAuditReq{" + "applyId=" + applyId + ", auditName=" + auditName + ", remark=" + remark + ", reason=" + reason + '}';
    }

}
